package com.liveinstars.gateway.business.repository.facade;

import com.liveinstars.gateway.business.entity.AuthSecretDTO;

import java.util.List;

/**
 * @author: zhouze
 * @date: 2019-08-12
 */
public interface AuthSecretManager {

    /**
     * 根据appId和type获取密钥
     * @param appId
     * @param version
     * @param type
     * @return
     */
    AuthSecretDTO getByAppIdVersionAndType(Long appId, Integer version, Integer type);

    /**
     * 获取最新的鉴权密钥信息
     * @param appId
     * @param type
     * @return
     */
    AuthSecretDTO getNewAuthSecret(Long appId, Integer type);

    /**
     * 获取最新的两条web的鉴权密钥信息
     * @param appId
     * @param type
     * @return
     */
    List<AuthSecretDTO> listTwoNewWebAuthSecret(Long appId, Integer type);


}
